import javax.print.DocFlavor;
import java.util.Stack;

public class testcode {
    public static void main(String[] args) {
        Stack<Integer> stack=new Stack<>();
        stack.push(1);
        stack.push(2);
        stack.push(3);
        testwork1 tr=new testwork1();
        System.out.println(stack);
        System.out.println(stack.peek());
        stack.pop();
        System.out.println(stack);
        System.out.println(stack.empty());
        System.out.println(stack.size());
        stack.addAll(stack);
        System.out.println(stack);
    }
}
